<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>展览发布成功</title>
<link href="../style/css_member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/common.js"></script>
<script src="../js/artDialog.js?skin=gray"></script>
<script src="../js/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="../js/jquery-1.3.2.js"></script>

<script type="text/javascript">

$(function(){
	$("a[name='addPaintingHref']").click(function(){
		art.dialog.open('${ctx }/painting/addPrepareByExhibition.do?exhibition_Id=${e.id}',{title:'添加作品',width:820,height:550,lock:true},false);
    });
    
	m1('m1_003');
});

/**修改展览信息 **/
function modify(id){
	art.dialog.open('${ctx}/exhibition/modifyPrepare.do?exhibition.id='+id,{title:'修改展览',width:820,height:550,lock:true},false);
}

function showNextPagePic(flag){

	var totalPages = document.getElementById("totalPages_Hidden").value;
	var cur_No = document.getElementById("curPage").value;

	if(totalPages == "" || cur_No == ""){
		return ;
	}
	if(flag>0){
		cur_No = parseInt(cur_No) + 1;
		var total_len = '${fn:length(page.result)}';
		if(parseInt(total_len) == 8){
			if(cur_No <= parseInt(totalPages)+1){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
		else if(parseInt(total_len) < 8){
			if(cur_No <= parseInt(totalPages)){
				document.getElementById("curPage").value = cur_No;
			}else{
				cur_No = totalPages;
			}
		}
	}else{
		cur_No = parseInt(cur_No) - 1;
		if(cur_No > 0 ){
			document.getElementById("curPage").value = cur_No;
		}else{
			cur_No = 1;
		}
	}
	
	var x = document.forms[0];
	x.submit();
}

</script>
</head>
<body>

<!-- 页面头部  -->
<jsp:include page="/commons/head_member.jsp"></jsp:include>

<table width="960" align="center" border="0" cellspacing="0" cellpadding="0" class="tbl_border_top" style="font-family: 宋体;font-size: 14px;">
          <tr>
          	<td></td>
          	<td  class="bt14A">展览资料</td>
          </tr>
          <tr><td class="bt14A" align="right">
            	<span class="style15">*</span> 展览主题：</td>
                 <td> ${e.title }</td>
             <td width="254" valign="top" rowspan="5"><div align="center">
	                <table width="165" height="217" border="0" cellpadding="0" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#CCCCCC">
	                  <tr>
	                    <td bgcolor="#FFFFFF">
	                    	<div id="photoTd" style="width: 165px;height: 220px;vertical-align: middle;text-align: center;overflow: hidden;">
	                    		<img width="165" height="220" src="${e.imagepath}">
	                    	</div>
	                    </td>
	                  </tr>
	                </table>
	            </div></td>
           </tr> 
          <tr><td class="bt14A" align="right"><span class="style15">*</span> 序言：</td>
               <td><textarea name="exhibition.description"
                    cols="60" rows="5" id="description">${e.description }</textarea></td>
          </tr>
          <tr><td class="bt14A" align="right"><span class="style15">*</span> 所在地：</td><td>${e.provinceInfo.name }${e.cityInfo.name }</td></tr>
          <tr><td class="bt14A" align="right"><span class="style15">*</span> 展览地点：</td><td>${e.address }</td></tr>
          <tr><td class="bt14A" align="right"><span class="style15">*</span> 展览时间：</td><td><fmt:formatDate value='${e.beginTime }' pattern='yyyy-MM-dd'/>至<fmt:formatDate value='${e.endTime }' pattern='yyyy-MM-dd'/></td></tr>
          <tr><td class="bt14A" align="right"><span class="style15">*</span> 参展艺术家：</td><td>${e.artists }</td></tr>
          <tr><td class="bt14A" align="right">策展人或单位：</td><td>${e.publisher }</td></tr>
          <tr>
           <td width="168">
	            <!-- 隐藏域 begin -->
	            			<input name="exhibition.imageInfo.id" type="hidden"  id="picImage">
	            <!-- 隐藏域 end -->
            </td>
          <td class="nw12a">
          		<a href="javascript:modify(${e.id });">
          		<img border="0" src="../images/an41.gif" width="106" height="31" style="cursor: pointer"/></a>
          	</td>
         </tr>
    </table>

<%@ include file="/member/list_painting_fragment.jsp" %>

<jsp:include page="/commons/foot_member.jsp"></jsp:include>

</body>
</html>